package com.zwps.common.api.model.vo;

import java.util.List;

import com.zwps.extra.http.response.model.vo.AbstractPageInfoVO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Schema(description = "分页信息")
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
public class PageInfoVO<T> extends AbstractPageInfoVO<T> {

    // 当前页
    @Schema(description = "当前页")
    private Integer pageNum;

    // 每页的数量
    @Schema(description = "每页的数量")
    private Integer pageSize;

    // 总页数
    @Schema(description = "总页数")
    private Integer pages;

    @Schema(description = "总数量条数")
    private Long total;

    // 结果集
    @Schema(description = "当前页结果集")
    private List<T> list;
}
